package cn.baisee.process.impl;

import cn.baisee.process.ProcessChain;
import cn.baisee.process.ProcessRequest;
import cn.baisee.request.GroundingRequest;
import cn.baisee.result.Result;

public class Finance implements ProcessRequest {

    public Result doneRequest(ProcessChain chain) {
        if (chain.getRequest().getGoods().getPrice()>100){
            chain.getRequest().setLastRequestName("财务");
         return    chain.doChain(chain.getRequest());
        }
        Result result = new Result();
        result.setInto("审核通过");
        result.setResult(true);
        System.out.println(chain.getRequest().toString());
        return result;
    }
}
